//
//  STab.h
//  EasyRetail
//
//  Created by Samuel on 12/18/15.
//
//

#import <UIKit/UIKit.h>
@protocol STabDelegate;
@interface STab : UIView

@property (nonatomic, strong)UIScrollView *scrollView;
+ (STab*)shareSTabInitializationInArray:(NSMutableArray<NSString*>*)array
                               andFrame:(CGRect)frames;

@property (nonatomic, strong)NSMutableArray<NSString*> *stringArray;

@property (nonatomic, strong)UIFont *sFont;
@property (nonatomic, strong)UIColor *sColor;
/**
 *  代理赋值为nil即为reloadData
 */
@property (nonatomic, weak)NSObject<STabDelegate> *delegate;
/**
 *  是否打开下边显示条
 */
@property (nonatomic, assign)BOOL openBottomView;
/**
 *  是否打开取消选择
 */
@property (nonatomic, assign)BOOL openDismissSelect;
/**
 *  重载数据
 */
- (void)reloadData;
/**
 *  跳转到某个view
 *
 *  @param index
 */
- (void)setThePageToIndex:(NSInteger)index;
/**
 *  打开和关闭所有按钮点击功能
 *
 *  @param open
 */
- (void)setAllButtonInteractionEnabled:(BOOL)open;
@end



@protocol STabDelegate <NSObject>

- (void)STab:(STab *)sTab didSelectRowAtIndex:(NSInteger)index;

@end

@interface STabButton : UIButton
@property (nonatomic, assign)NSInteger xPoint;
@end
